package top.malaoshi.netdisk.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class ModifyPassword {
    private String uid;
    @NotNull(message = "原密码不能为空")
    @Size(min = 5, max = 16, message = "原密码长度必须在5-16之间")
    private String oldPassword;
    @NotNull(message = "新密码不能为空")
    @Size(min = 5, max = 16, message = "新密码长度必须在5-16之间")
    private String newPassword;
    @NotNull(message = "确认新密码不能为空")
    @Size(min = 5, max = 16, message = "确认新密码长度必须在5-16之间")
    private String confirmPassword;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getConfirmPassword() {
        return confirmPassword;
    }

    public void setConfirmPassword(String confirmPassword) {
        this.confirmPassword = confirmPassword;
    }
}
